package cn.com.css.taxInspection.common.constants;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

/**
 * 业务数据常量类
 */
public final class Constants {

    /**
     * 常用接口
     */
    public static class Url {
        // IP归属地查询
        public static final String IP_URL = "http://whois.pconline.com.cn/ipJson.jsp?ip=%s&json=true";
    }

    /**
     * 项目字符集
     */
    public static final String PROJECT_ENCODING = "UTF-8";

    /**
     * 请求ID，主要记录日志中及返回报文中
     */
    public static final String REQUEST_ID = "reqid";

    /**
     * 定时任务状态
     */
    public static final Integer SCHEDULER_STATUS_NORMAL = 0;
    public static final Integer SCHEDULER_STATUS_PAUSE = 1;

    /**
     * redis的token相关
     */
    public static final String ACCESS_TOKEN = "authorization";
    public static final String PERMISSIONS_KEY = "permissions-key";
    public static final String USERID_KEY = "userid-key";
    public static final String USERNAME_KEY = "username-key";
    public static final String ROLES_KEY = "roles-key";
    public static final String DEPT_ID = "deptid-key";
    public static final String DEPT_NO = "deptno-key";
    public static final String IDENTITY_NO = "identityno-key";
    public static final String IDENTITY_NAME = "identityname-key";
    public static final String USER_ROLE = "user-key";
    public static final String ROLES_ID = "roles-id";

    /**
     * session 相关
     */
    public static final String SESSION_CAPTCHA_PHONE = "session-captcha-phone";

    /**
     * 删除值 1：未删除 0：已删除
     */
    public static final Integer DATA_NOT_DELETED = 1;
    public static final Integer DATA_YES_DELETEED = 0;

    /**
     * 数据库类型
     */
    public static final String DB_TYPE_MYSQL = "mysql";
    public static final String DB_TYPE_ORACLE = "oracle";
    public static final String DB_TYPE_SQL_SERVER = "sqlServer";

    /**
     * delete 数据字典
     */
    public static final Integer DELETEED_NOT = 1; // 1未删除
    public static final Integer DELETEED_YES = 0; // 0已删除

    /**
     * status 数据字典
     */
    public static final Integer STATUS_LOCK = 2; // 锁定
    public static final Integer STATUS_NORMAL = 1;// 正常

    /**
     * 机关层级 数据字典
     */
    public static final String LEVEL_SHENGJU = "0"; // 省局
    public static final String LEVEL_SHIJU = "1";// 市局
    public static final Integer LEVEL_QUANSHI = 0;// 全市
    public static final Integer LEVEL_QUANJU = 1;// 全局

    public static final String LEVEL_XIANQUJU = "2";// 县区局

    /**
     * 日志问卷
     */
    public static final String SURVEY_TYPE_OPTION_1 = "1"; // 文本
    public static final String SURVEY_TYPE_OPTION_2 = "2"; // 多选
    public static final String SURVEY_TYPE_OPTION_3 = "3"; // 单选

    /**
     * 案件调整
     * 0 未检查
     * 1 已检查
     * 3 执行人
     * 4 已执行人
     */
    public static final String AJZT_LX_WTZ = "0"; // 未调整
    public static final String AJZT_LX_YTZ = "1"; // 已调整
    public static final String AJZT_LX_ZXR = "3"; // 已调整
    public static final String AJZT_LX_YZXR = "4"; // 已调整
    public static final String AJZT_LX_BCAJGL = "7"; // 已调整
    public static final String AJZT_ZXR_ZZX = "正在执行"; // 已调整
    public static final String AJZT_ZXR_ZZZX = "中止执行"; // 已调整
    public static final String AJZT_ZXR_ZJZX = "终结执行"; // 已调整
    public static final String AJZT_ZXR_ZXWB = "执行完毕"; // 已调整
    public static final String AJZT_LX_Y = "Y"; // 未调整
    public static final String AJZT_LX_N = "N"; // 未调整
    public static final String JTJB_JBZT_ON = "on"; // 未调整


    /**
     * 工作调度
     * 3 市创建，未推送
     * 4 已推送，未办理
     * 5 已办理
     * 6 暂停
     * 7 局创建，未推送
     */
    public static final String GZDD_DD_S_SAVE = "3";
    public static final String GZDD_DD_PUSH = "4";
    public static final String GZDD_DD_FINISH = "5";
    public static final String GZDD_DD_PAUSE = "6";
    public static final String GZDD_DD_J_SAVE = "7";

    //全市
    public static final List<String> GZDD_DD_QS_ARRAY = Collections.unmodifiableList(
            Arrays.asList("3", "4", "5", "6", "7")
    );
    //全局
    public static final List<String> GZDD_DD_QJ_ARRAY = Collections.unmodifiableList(
            Arrays.asList("4", "5", "6", "7")
    );

    public static final String AJXX_ZT_ZZJC = "正在检查";
    public static final String AJXX_ZT_ZZSL = "正在审理";
    public static final String AJXX_ZT_ZZZX = "正在执行";

    public static final String DSRW_ZXCG = "执行成功";
    public static final String DSRW_ZXSB = "执行失败";
    public static final String DSRW_GZCB = "关注查补4项定时任务";
    public static final String DSRW_AJTZ = "案件调整定时任务";
    public static final String DSRW_AJGL_QCCX = "案件管理3项清册查询定时任务";
    public static final String DSRW_DSRZLOG = "每月1日情况日志表定时任务";
    public static final String DSRW_ZH = "每天早1点-综合类定时任务";


    public static final String YLJAMXMB_NAME = "一类积案清理明细表模板.xlsx";
    public static final String QTJAMXMB_NAME = "其他长期未结案件明细表.xlsx";
    public static final String CLJAMXMB_NAME = "立案超过6个月未结案件清理明细表.xlsx";


    public static final String jcj = "12101009000";
    public static final String yj = "12101009100";
    public static final String ej = "12101009200";
    public static final String sj = "12101009300";


    public static final String ALL = "ALL";

    /**
     * 创建来源
     * 3
     * 4 从核心税务人员代码表同步
     */
    public static final Integer CREATE_WHERE_HXSWRYDMTB = 4; // 正常创建



}
